package com.foo.common.base.template.src;

import com.foo.common.base.annotations.ColumnCrud;
import com.foo.common.base.annotations.EntityCrud;
import com.foo.common.base.annotations.JspCrud;
import com.foo.common.base.annotations.MgrCrud;
import com.foo.common.base.enums.FormFieldType;
import com.foo.common.base.enums.FormFieldValidation;
import com.foo.common.base.utils.CommonCrudBuilder;

/**
 * Crud自动化类
 * 
 * 
 * 表单form顺序：text两个一行，textarea单独一行，img单独一行
 * 
 * @author Steve
 *
 */
@EntityCrud(modelUpperCamelName = "MmsStatementInner", jspTitleName = "MhoSkillType Crud")
@MgrCrud(id2bean = true)
public class CommonCrudHelper {

	@ColumnCrud(comment = "skillName", length = 50)
	@JspCrud(formFieldType = FormFieldType.text, displayOnTable = true, displayOnForm = true, cnName = "skillName", validation = {
			FormFieldValidation.required })
	private String skillName;

	@ColumnCrud(comment = "skillType")
	@JspCrud(formFieldType = FormFieldType.text, displayOnTable = true, displayOnForm = true, cnName = "skillType", validation = {
			FormFieldValidation.required })
	private int skillType;

	public static void main(String[] args) throws Exception {
		CommonCrudBuilder.INSTANCE.execute();
	}

}
